const app = getApp();
Page({
	onLoad: function (options) {
    console.log('assist', options.type)
		this.setData({
			order_no: options.order_no ? options.order_no:'',
			tui_jian_on:options.type == 2 ? 'on':''
		});
	},
	navigator_click(){
		wx.navigateBack({ changed: true });
	},
	step_click() {
		wx.chooseAddress({
			success: (res) => {
				this.setData({
					step: res.provinceName+'-'+res.cityName+'-'+res.countyName+'-'+res.detailInfo,
					name: res.userName,
					phone:res.telNumber
				})
			},
			fail: function(err) {
				console.log(err)
			}
		})
	},
	tui_jian_off:function(){
		this.setData({
			tui_jian_on:''
		})
	},
	onShareAppMessage: function () {
		return app.onShareAppMessage();
	}  
})



